-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
optionals to pointers + tests #1174
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, minor nit in Changelog
CHANGELOG.md
Outdated
@@ -35,6 +35,7 @@ | |||
|
|||
### Improvements | |||
|
|||
- Change API optional structs to pointers to conform with k8s guide ([#1170](https://github.com/kedacore/keda/issues/1170)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please move this to ###Other
section below, as this is not something that is directly affecting users.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure thing, done :)
@ahmelsayed could you please take a look on the question? I think that it does make sense. |
Signed-off-by: Ville Aikas <vaikas@vmware.com>
Signed-off-by: Ville Aikas <vaikas@vmware.com>
Signed-off-by: Ville Aikas <vaikas@vmware.com>
@vaikas I think I didn't want |
If it's okay with you, we can merge this change and have that other change as a separate PR |
Yea, I'm fine with merging as is and doing more refactoring later on if we think it's warranted :) Just wanted to throw it out there. I can take a spin to see what it might look like and then bikeshed on that one :) Sound like a plan @ahmelsayed ? |
* optionals to pointers + tests Signed-off-by: Ville Aikas <vaikas@vmware.com> * oops, changelog Signed-off-by: Ville Aikas <vaikas@vmware.com> * move the entry in Changelog to Other section Signed-off-by: Ville Aikas <vaikas@vmware.com> Signed-off-by: silenceper <silenceper@gmail.com>
Signed-off-by: Ville Aikas vaikas@vmware.com
Provide a description of what has been changed
Checklist
Fixes #1170
There are no user facing documents, since from the users point of view they are the same, just the clients changed. Also, add omitempty as it was missing from some of these. Add tests.
Since I'm not very familiar with the code style yet, I was curious about maybe changing the ResolveAuthRef to actually return an error in addition to map[string]string, string so it would be: (map[string]string, string, error) but didn't want to make that change without discussion first. I think that would be better for the callers to have an error to deal with rather than missing information?